package com.Demo;

public class Demo2 {
    public static void main(String[] args) {
        String s = "23,24,25";

        String[] split = s.split(",");

        String s1 = split[0];
        String s2 = split[1];
        String s3 = split[2];

        int num1 = Integer.parseInt(s1);
        int num2 = Integer.parseInt(s2);
        int num3 = Integer.parseInt(s3);

        System.out.println((num1+num2+num3)/3);
    }
}
